import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Read from '@/pages/Read'
import Movie from '@/pages/Movie'
import Vant from 'vant'
import 'vant/lib/index.css'

Vue.use(Vant);

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/Read',
      name: 'Read',
      component: Read
    },
    {
      path: '/Movie',
      name: 'Movie',
      component: Movie
    },
    {
      path: "*", redirect: "/"

    }
  ],
  mode: 'history'
})
